﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace z.m.db.Metadata
{
	public class MOccasion_Detail
	{

		[Display(Name = "Event ID")]
		[StringLength(10, ErrorMessage = "{0} Lenght must be form {2} to {1}", MinimumLength = 1)]
		public int Event_ID { get; set; }


		[Display(Name = "ID")]
		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int ID { get; set; }


		[Display(Name = "Price")]
		//[DataType(DataType.Currency)]
		[StringLength(10, ErrorMessage = "{0} Lenght must be form {2} to {1}", MinimumLength = 1)]
		public int Price { get; set; }



		public virtual Product Product { get; set; }


		[Display(Name = "Product ID")]
		[StringLength(10, ErrorMessage = "{0} Lenght must be form {2} to {1}", MinimumLength = 1)]
		public int Product_ID { get; set; }

		
	}
}